package org.apache.dubbo.demo.consumer.test.spi;

import org.apache.dubbo.common.URL;
import org.apache.dubbo.config.ProtocolConfig;
import org.apache.dubbo.rpc.Protocol;

/**
 * 汽车接口实现类：宝马
 */
public class BMWCar implements Car {

    public Protocol protocol;

    public void setProtocol(Protocol protocol) {
        this.protocol = protocol;
    }

    public void run(URL url) {
        System.out.println("我是宝马,暴发户专用！！！");
    }

    @Override
    public void run() {
        System.out.println("我是宝马.....，暴发户专用！！！");
        System.out.println(protocol);
    }
}